// 对外暴露配置的路由(常量路由)
export const constantRoute = [
    {
        // 登录
        path:'/login',
        component:()=>import('@/views/login/index.vue'),
        name:'login', // 命名路由
    },
    {
        // 登录成功以后展示数据
        path:'/',
        component:()=>import('@//index.vue'),
        name:'layout', 
    },
    {
        // 404
        path:'/404',
        component:()=>import('@/views/404/index.vue'),
        name:'404', 
    },
    {
        // 任意路由，就是都没命中的兜底
        path:'/:pathMatch(.*)*',
        redirect:'/404',
        name:'Any', 
    }
]